package com.bn.commerce.pricing.calculators;

import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;

import com.bn.commerce.order.BNCommerceItemImpl;
import com.bn.commerce.pricing.BNPricingTools;

import atg.commerce.order.CommerceItem;
import atg.commerce.order.CommerceItemContainer;
import atg.commerce.order.CommerceItemManager;
import atg.commerce.order.Order;
import atg.commerce.pricing.DetailedItemPriceInfo;
import atg.commerce.pricing.ItemDiscountCalculator;
import atg.commerce.pricing.ItemPriceInfo;
import atg.commerce.pricing.PricingException;
import atg.commerce.pricing.PricingTools;
import atg.repository.MutableRepositoryItem;
import atg.repository.RepositoryException;
import atg.repository.RepositoryItem;

public class BNItemDiscountCalculator extends ItemDiscountCalculator{

/*
	@Override
	public void priceItems(List pPriceQuotes, List pItems, RepositoryItem pPricingModel, Locale pLocale, RepositoryItem pProfile, Order pOrder, Map pExtraParameters)
			throws PricingException {
		RepositoryItem product = null;
//		List<CommerceItem> commerceItems =  pOrder.getCommerceItems();
//			  for(CommerceItem item : commerceItems){
//				  product = (RepositoryItem) item.getAuxiliaryData().getProductRef();
//				  if(product != null){
//					  boolean isDiscountable = true;
//					  if(null!=product.getPropertyValue("isDiscoutable")){
//						  isDiscountable=(Boolean) product.getPropertyValue("isDiscoutable");
//						  Object wt=product.getPropertyValue("productWeight");
//						  System.out.println("isDiscountable"+wt);
//					  }
//
//					  if(isDiscountable){
//						  super.priceItems(pPriceQuotes,  pItems,  pPricingModel,  pLocale,  pProfile,  pOrder,  pExtraParameters);
//					  }
//					  else{
//						  if(isLoggingDebug()){
//							  logDebug("Discount cannot be apply for this product");
//						  }
//					  }
//				  }
//
//			  }


	}

*/

}
